package com.example.apis.behaviour;

import com.example.model.common.dtos.ResponseResult;
import io.swagger.models.auth.In;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("youthnews-behaviour")
public interface IBehaviourClient {

    @PostMapping("/feign/v1/behaviour/fansList")
    public ResponseResult getFansList(@RequestParam("userId") Integer userId);

    @PostMapping("/feign/v1/behaviour/isFollowed")
    public boolean isFollowed(@RequestParam("userId") Integer userId,@RequestParam("followId") Integer followId);
}
